package lab02.test10;

/**
 * Created by Administrator on 2017/10/21.
 */
public class People {
    //属性：姓名，性别，年龄。。。
    String name;
    String gender;
    int age;
    public String getName(){return name;}
    public String getGender(){return gender;}
    public int getAge(){return age;}

    public String toString(){
        return (name+" "+gender+" "+age);
    }

    //行为：吃饭，睡觉
    void sleep(){
        System.out.println("睡一天");
    }
    void eat(){
        System.out.println("吃一天");
    }
}
